<?php
namespace app\controllers;

use Yii;
use yii\web\Controller;
use app\models\Country;

class ComController extends Controller{
    public function actionData(){
        $country = Country::find()->orderBy('name')->all();

//        $test = Country::findOne('US');
//        $test->name = "test";
//        $test->save();

        return $this->renderPartial('data',['data' => $country]);

    }
}
    


?>